package ssx.demo.bootautoconfigdemo;

import org.junit.jupiter.api.Test;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.test.context.SpringBootTest;
import ssx.demo.bootautoconfigdemo.demo.A;
import ssx.demo.springbootstarter_demo.hai.Hello;

@SpringBootTest
public class Demo {
    @Autowired
    A a;

    @Autowired
            @Qualifier("myStarterHello")
    Hello hello;

    @Test
    public void f(){
        hello.say(LoggerFactory.getLogger(this.getClass()));
        a.fun();
    }
}
